package org.web.demo.entity;

import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author yexi
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User {
    private Long id;
    private String name;
    private Integer age;
    private BigDecimal salary;
    private Date birthday;
    private String username;
    private String password;
    private String headImg;

    public User(Long id, String name, Integer age, BigDecimal salary, Date birthday) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.birthday = birthday;
    }

}
